Skip to content

fix(interopgen): use InteropOffset when setting Interop genesis flags#20148

Merged
maurelian merged 2 commits intodevelopfrom
fix/l2cm-interop-offset
Apr 21, 2026
Merged

fix(interopgen): use InteropOffset when setting Interop genesis flags#20148
maurelian merged 2 commits intodevelopfrom
fix/l2cm-interop-offset

Conversation

@0xiamflux
Copy link
Copy Markdown
Contributor

Summary

GenesisL2 was enabling UseInterop and OptimismPortalInteropFlag based entirely on whether the world had more than one chain. This caused L2Genesis.s.sol to reject the configuration with L2Genesis_InvalidInteropConfig whenever InteropOffset > 0, because the fork number at genesis would be pre-Interop while both flags were set.

Changes

  • Gate both flags on multichainDepSet && interopOffset == 0. Interop will only be enabled at genesis if it's actually scheduled to activate.

Closes #20079

@0xiamflux 0xiamflux self-assigned this Apr 17, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.3%. Comparing base (30a1dbf) to head (8b6e177).
⚠️ Report is 1 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #20148      +/-   ##
===========================================
+ Coverage     11.5%    66.3%   +54.7%     
===========================================
  Files          668       55     -613     
  Lines        72125     4035   -68090     
===========================================
- Hits          8332     2677    -5655     
+ Misses       63649     1214   -62435     
  Partials       144      144              
Flag Coverage Δ
cannon-go-tests-64 66.3% <ø> (ø)
contracts-bedrock-tests ?
unit ?

Flags with carried forward coverage won't be shown. Click here to find out more.
see 613 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@0xiamflux 0xiamflux marked this pull request as ready for review April 20, 2026 14:40
@0xiamflux 0xiamflux requested a review from a team as a code owner April 20, 2026 14:40
@maurelian maurelian added this pull request to the merge queue Apr 21, 2026
Merged via the queue into develop with commit 8f8a660 Apr 21, 2026
189 checks passed
@maurelian maurelian deleted the fix/l2cm-interop-offset branch April 21, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[L2CM] Audit Finding #36: interopgen forces Interop on at genesis in delayed setups

2 participants